import { fetchList, selectRoleList } from '@/api/userManagement'
/**
 * 获取用户信息列表
 */
export function getUserList(listQuery) {
  return new Promise((resolve, reject) => {
    console.log('aaa' + listQuery)
    setTimeout(() => {
      try {
        const res = fetchList(listQuery)
        resolve(res)
      } catch (error) {
        reject(error)
      }
    }, 0.5 * 1000)
  })
}

export function userSelectRoleList() {
  return new Promise((resolve, reject) => {
    try {
      const res = selectRoleList()
      resolve(res)
    } catch (error) {
      reject(error)
    }
  })
}
